<template>
	<view class="quick">
		<div @tap="phone">
			<i class="iconfont icontubiaozhizuomoban-12"></i>
			<span>电话联系</span>
		</div>
		<div @tap="yuyue">
			<i class="iconfont icontubiaozhizuomoban-7"></i>
			<span>在线预约</span>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			phone(){
				wx.makePhoneCall({
				  phoneNumber: uni.getStorageSync('userInfo').maintel || '18507550715'
				})
			},
			yuyue(){
				if(uni.getStorageSync('userInfo')){
					uni.navigateTo({
					    url: '../../pages/appointment/index'
					});
				}else{
					uni.showToast({
					    title: '请先登录',
					    duration: 2000,
						icon:'none'
					});
					uni.switchTab({
					    url: '../../pages/my/index'
					});
				}
				
			}
		}
	}
</script>

<style scoped lang="less">
	.quick{
		background: #024B80;
		width: 80rpx;
		position: fixed;
		right: 0;
		top: 250rpx;
		z-index: 999;
		>div{
			text-align: center;
			border-bottom: 1rpx solid #256491;
			margin-top: 10rpx;
			padding-bottom: 10rpx;
			.iconfont{
				font-size: 60rpx;
				color: #fff;
			}
			span{
				color: #fff;
				font-size: 13rpx;
			}
			
			
			&:last-of-type{
				border-bottom: none;
			}
		}
	}
</style>
